package com.ljx.itbbs.server.article.event;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-03-27  19:50
 */
@Getter
public class CollectEvent extends ApplicationEvent {

    private String objKey;

    private Long userId;

    private Long objId;

    private Integer type;

    public CollectEvent(Object source, String objKey, Long userId, Long objId, Integer type) {
        super(source);
        this.objKey = objKey;
        this.userId = userId;
        this.objId = objId;
        this.type = type;
    }
}
